package zjt.string1;

public class demo1 {
    public static void main(String[] args) {
        //构造方法,开辟16个字符的字符串缓冲区对象
        StringBuffer stringBuffer = new StringBuffer();
        //构造方法2,开辟2个字符的字符串缓冲区对象
        StringBuffer stringBuffer1 = new StringBuffer(2);
        //构造方法3,开辟了5+16的字符串缓冲区对象
        StringBuffer stringBuffer2 = new StringBuffer("hello");
    }
}
